/*
 * CMap.h
 *
 *  Created on: 28/08/2008
 *      Author: samuel.grigolato
 */

#ifndef CMAP_H_
#define CMAP_H_

#include <SDL.h>
#include <vector>
#include <string>
#include "CParametros.h"
#include "CSurface.h"
#include "CTile.h"
#include "CItem.h"
#include "CObjetoImovel.h"
#include "CObjeto.h"
#include "CEntity.h"

class CMap {

private:
	std::vector<CTile> TileList;

public:
	SDL_Surface* SurfTileset;
	SDL_Surface* SurfBackground;
	int Altura;
	int Largura;
	int MaxPlayers;

	CMap();
	virtual ~CMap();

	bool OnLoad(std::string File);
	void OnRender(SDL_Surface* SurfDisplay);
	void Init(char* Mapa);

	void CriaObjetosImoveis(FILE* FileHandle);
	void CriaObjetos(FILE* FileHandle);
	virtual void CriaItens(std::vector<CObjeto*> Objetos);
};

#endif /* CMAP_H_ */
